README � Replication Data for�The impact of Terrorism on Democratic Support in Africa�1. DESCRIPTIONThis dataset contains the data and Stata code needed to replicate the analyses in: �The impact of Terrorism on Democratic Support in Africa�.The paper studies how exposure to terrorism and political violence affects support for democracy in Africa. The analysis combines:* Individual-level survey data from Afrobarometer (Rounds 9 and 8)* Geocoded conflict/terrorism data from ACLED and GTD* Country-level indicators from V-Dem and the Human Development Index (HDI)2. DATA SOURCESThe replication data are based on the following public sources:1. Afrobarometer � Afrobarometer Round 9 and Round 8 merged datasets.2. ACLED (Armed Conflict Location & Event Data Project) � political violence and conflict events.3. Global Terrorism Database (GTD) � terrorism events (for robustness analysis).4. Varieties of Democracy (V-Dem) � Liberal Democracy Index (macro-level).5. UNDP Human Development Index (HDI) � country-level development scores.Users should consult the original providers for full documentation and licensing.3. CONTENTS OF THIS REPLICATION PACKAGE3.1 Data files* R9_final.dtaMain analysis dataset. Cleaned and matched Afrobarometer Round 9 data, merged with ACLED events, V-Dem Liberal Democracy Index, and HDI.* R8_final.dta (if included)Robustness dataset. Cleaned and matched Afrobarometer Round 8 data, merged with GTD-based terrorism measures.* macro.dtaHuman Development Index (HDI) data used to merge country-level scores with Afrobarometer R9, ACLED, and V-Dem indicators.* Original_data_acled.dtaUnmodified original ACLED dataset used as the source for conflict/terrorism measures.* Original Afrobarometer data files (filenames beginning with �Original_�, if included)Unmodified original Afrobarometer Round 9 (and, where relevant, Round 8) datasets as downloaded.* Other .dta files (if present)Intermediate or derived datasets created during cleaning and matching. These are not strictly necessary for replication but are included for transparency.3.2 Code files (Stata do-files)* R9 cleaning and matching do-fileStata do-file used to clean Afrobarometer Round 9 and match it with ACLED, V-Dem, and HDI.� Reads the original R9 data and ACLED events� Merges V-Dem and HDI� Cleans and recodes variables� Creates R9_final.dta* 02_analysis.doRegression code for R9_final.dta.� Runs all main models reported in the paper� Produces tables and graphs (including appendix results) based on R9* 03_robustness_clean.doStata do-file used to clean the Afrobarometer Round 8 data and match it with GTD.� Reads original R8 data and GTD events� Constructs terrorism exposure measures� Cleans and recodes variables� Creates R8_final.dta* 04_robustness_analysis.doRegression code for R8_final.dta.� Runs robustness models using GTD-based measures� Produces robustness tables and appendix graphs4. SOFTWARE AND REQUIREMENTS* Software: Stata 16 or later.* User-written Stata packages: some analyses may require standard user-written commands (for example: coefplot, outreg2). These can be installed in Stata via:ssc install coefplotssc install outreg2(Install any additional packages indicated at the top of the do-files.)5. REPLICATION INSTRUCTIONS1. Download and unzip the full Dataverse replication package into a working folder.2. Open the Stata do-files and update the directory paths at the top of each file (for example: global main, global table, global graph) so they point to your local folders.3. Re-create the analysis datasets:o Run the R9 cleaning do-file (name as listed in the Dataverse files) to generate R9_final.dta.o Run:do 03_robustness_clean.doto generate R8_final.dta (if you want to reproduce robustness analyses).4. Run the main analysis (R9):do 02_analysis.doThis should reproduce the main tables and figures reported in the paper (including appendix results based on R9).5. Run the robustness analysis (R8�GTD):do 04_robustness_analysis.doThis should reproduce the robustness tables and graphs using the R8�GTD dataset.6. Outputs:Tables and figures are saved in the directories specified near the top of the do-files (for example, folders called �tables� and �graph�). You can change these paths if desired.6. KEY VARIABLE TYPES (HIGH-LEVEL)Details and exact coding are given in the do-files and in the article. In brief:* Democratic attitudes and outcomesIndices and variables derived from Afrobarometer items capturing support for democracy and related political attitudes.* Terrorism and conflict exposureMeasures of exposure to terrorism and political violence created by linking Afrobarometer enumeration areas to ACLED (Round 9) and GTD (Round 8) events.* Macro-level indicatorsLiberal Democracy Index (V-Dem) and Human Development Index (HDI) from UNDP.* ControlsStandard socio-demographic and political variables (age, gender, education, urban/rural, etc.) taken from Afrobarometer.7. CONTACTFor questions about the replication materials, please contact the authors via the contact details provided in the associated article or through the journal correspondence system.